package com.hejielife.singlethreadedexecution2;

/**
 * 2019年8月2日 上午10:19:55
 * 
 * @author hejielife
 * @despribe 模拟进出
 */
public class CrackerThread extends Thread {
	private SecurityGate gate;

	public CrackerThread(SecurityGate gate) {
		this.gate = gate;
	}

	public void run() {
		for (int i = 0; i < 100; i++) {
			gate.enter();
			gate.exit();
		}
	}
}
